Skip to content

Conversation

@Haviles04
Copy link
Contributor

@Haviles04 Haviles04 commented Nov 19, 2025

Description

Fixes #22345

Disables activator when value === null or value === false, undefined is intentional, but at least this will give users a way to not show the tooltip conditionally

<template>
  <v-app>
    <v-container>
      <v-btn text="button with undefined tooltip" v-tooltip />
      <br>
      <v-btn text="button with null tooltip" v-tooltip="nullTooltip" />
      <br>
      <v-btn text="button with false tooltip" v-tooltip="false" @click="handleClick" />
      <br>
      <v-btn text="button without tooltip" />
    </v-container>
  </v-app>
</template>

<script setup>
  import { ref } from 'vue'
  const nullTooltip = ref(null)

  function handleClick () {
    nullTooltip.value = 'Changed'
  }
</script>

@Haviles04 Haviles04 changed the title Bug #22345 V-tooltip directive null or false value fix: #22345 V-tooltip directive null or false value Nov 19, 2025
@Haviles04 Haviles04 requested a review from a team November 19, 2025 17:07
@J-Sek J-Sek changed the title fix: #22345 V-tooltip directive null or false value fix(v-tooltip): prevent showing empty tooltip Nov 21, 2025
@J-Sek J-Sek added T: bug Functionality that does not work as intended/expected C: VTooltip labels Nov 21, 2025
@J-Sek J-Sek merged commit 045362e into master Nov 21, 2025
18 checks passed
@J-Sek J-Sek deleted the haviles04/bug-22345 branch November 21, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

D: tooltip T: bug Functionality that does not work as intended/expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report][3.10.11] VTooltip with null or undefined value still show text on v-button (and empty tooltip with false value)

4 participants